<!DOCTYPE html>
<html>
	<head>
		<title>身份功能配置项</title>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<!-- Bootstrap 核心 CSS 文件 -->
		<link rel="stylesheet" href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">  
		<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
		<script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
		<!-- Bootstrap 核心 JavaScript 文件 -->
		<script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
		<!-- popper.min.js 用于弹窗、提示、下拉菜单 -->
		<script src="https://cdn.bootcss.com/popper.js/1.12.5/umd/popper.min.js"></script>
		<script src="https://cdn.staticfile.org/vue/2.2.6/vue.min.js"></script>
	</head>
	<body>
		<div class="table-responsive" id="app">
			<h1 class="form-inline">身份功能配置项  
				<button type="button" class="btn btn-primary" v-on:click="queryUserServiceCfg">获取配置数据</button>
				<button type="button" class="btn btn-primary" v-on:click="saveUserServiceCfg">保存配置数据</button>
			</h1>
			<table class="table table-striped table-bordered table-hover table-condensed">
				<caption></caption>
				<thread>
					<tr class="danger">
						<th class="input-lg">身份类型</th>
						<th class="input-lg">身份描述</th>
						<th class="input-lg">酒店推荐</th>
						<th class="input-lg">语音体验</th>
						<th class="input-lg">实用功能签到</th>
						<th class="input-lg">签到VIP仪式</th>
						<th class="input-lg">实用功能宣传</th>
						<th class="input-lg">实用功能问答</th>
						<th class="input-lg">实用功能指路</th>
						<th class="input-lg">实用功能统计</th>
						<th class="input-lg">语音再体验</th>
						<th class="input-lg">更多体验签到</th>
						<th class="input-lg">更多体验宣传</th>
						<th class="input-lg">更多体验问答</th>
						<th class="input-lg">更多体验指路</th>
						<th class="input-lg">更多体验统计</th>
						<th class="input-lg">未换人更多体验</th>
					</tr>
				</thread>
				<tbody>
					<tr class="success" v-for="site in sites">
						<td><label class="input-lg">{{ site.userType }}</label></td>
						<td><input type="text" class="form-control input-lg" placeholder="身份描述" v-model="site.userDesc"></td>
						<td><input type="checkbox" class="form-control input-lg" v-model="site.hotelAdvertising"></td>
						<td><input type="checkbox" class="form-control input-lg" v-model="site.experience1"></td>
						<td>
							<select class="form-control input-lg" v-model="site.pSign">
								<option>无签到模块</option>
								<option>全流程签到</option>
								<option>去拍照签到</option>
								<option>扫码注册签到</option>
								<option>精简签到</option>
							</select>
						</td>
						<td><input type="checkbox" class="form-control input-lg" v-model="site.pSignVipRite" v-if="site.pSign != '无签到模块'"></td>
						<td><input type="checkbox" class="form-control input-lg" v-model="site.pPublicity"></td>
						<td><input type="checkbox" class="form-control input-lg" v-model="site.pAdvisory"></td>
						<td><input type="checkbox" class="form-control input-lg" v-model="site.pDirecting"></td>
						<td><input type="checkbox" class="form-control input-lg" v-model="site.pStatistics"></td>
						<td><input type="checkbox" class="form-control input-lg" v-model="site.experience2"></td>
						<td><input type="checkbox" class="form-control input-lg" v-model="site.mSign"></td>
						<td><input type="checkbox" class="form-control input-lg" v-model="site.mPublicity"></td>
						<td><input type="checkbox" class="form-control input-lg" v-model="site.mAdvisory"></td>
						<td><input type="checkbox" class="form-control input-lg" v-model="site.mDirecting"></td>
						<td><input type="checkbox" class="form-control input-lg" v-model="site.mStatistics"></td>
						<td><input type="checkbox" class="form-control input-lg" v-model="site.mSameOne"></td>
					</tr>
				</tbody>
			</table>
		</div>

		<!-- 模态框 -->
		<div class="modal fade" id="conModal">
			<div class="modal-dialog modal-lg">
				<div class="modal-content">
					<!-- 模态框头部 -->
					<div class="modal-header">
						<h1 class="modal-title">{{ modalMsgTitle }}</h1>
						<button type="button" class="close" data-dismiss="modal">&times;</button>
					</div>
					<!-- 模态框主体 -->
					<div class="modal-body">
						{{ modalMsgBody }}
					</div>
					<!-- 模态框底部 -->
					<div class="modal-footer">
						<button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
					</div>
				</div>
			</div>
		</div>

		<script src="real.js"></script>
	</body>
</html>